const express = require('express')
const router = express.Router()
//将路由处理逻辑模块化
const controller = require('../controller/performance')




//成绩录入模块
router.post('/addperformance',controller.addPerformance)

//获取指定成绩信息模块
router.get('/getperformance',controller.getPerformance)

//获取所有成绩信息模块
router.get('/getperformances',controller.getPerformances)

//添加成绩信息模块
router.post('/updateperformance',controller.updateperformance)

//删除成绩信息模块
router.delete('/deleteperformance',controller.deletePerformance)


module.exports=router